package com.wf.it.hpdoctor.dao;

import com.wf.it.common.entity.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DoctorDao extends JpaRepository<Doctor,Integer>, JpaSpecificationExecutor<Doctor> {

    List<Doctor> findByDeptName(String deptName);

    Doctor findByEmpNo(String empNo);

    List<Doctor> findByEmpNoIn(String[] empNos);
}
